package com.repository;

import com.model.Comment;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author m
 * @date 2022/12/23 - 11:40
 */
public interface CommentRepository extends JpaRepository<Comment,Long> {

//    List<Comment> findByTutorialId(Long postId);

//    @Transactional
//    void deleteByTutorialId(Long tutorialId);
}
